// 菜单模块的状态管理器

export default {
    state: {
        menuInfo: [],
        menuState: {
            firstLevel: "1"
        }
    },
    mutations: {
        reset(state) {
            state.menuInfo = [],
                state.menuState.firstLevel = "1";
        },

        initMenuInfo(state, menuData) {
            // 初始化菜单数据
            state.menuInfo = menuData;
        },
        setMenuInfo(state, menuData) {
            // 设置菜单数据
        },
        initMentState(state, statedata) {
            // 初始化菜单状态数据
            state.menuState.firstLevel = statedata.firstLevel;
        },
        setMentState(state, statedata) {
            // 设置菜单激活状态
            state.menuState.firstLevel = statedata.firstLevel;
        }
    },
    actions: {

    }
};